import yagmail, os







def send_mail(to_mail, subject, contents, atach):
    mail = yagmail.SMTP(user='2101241257@qq.com',password = os.getenv("AUTHORIZATION_CODE"),host='smtp.qq.com')
    mail.send(to=to_mail, subject=subject, contents=contents, attachments=atach)